package com.cndw.kungfu.model.goods.app;

import java.util.Map;

import com.cndw.kungfu.model.Context;

/**
 * 打开获得礼包
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2011-9-13 下午3:00:05
 */
public class AppDo106 extends AppBase {
	@Override
	public boolean check() throws Exception {
		int black = Context.getGoodsServer().checkSubPopsBlack(goodsMode.getSubPopsList());
		checkBlack(black);

		return true;
	}

	@Override
	public Map<String, Object> run() throws Exception {

		if (goodsMode.getSubPopsList() != null) {
			Context.getGoodsServer().giveSubPops(goodsMode.getSubPopsList(), player);

		}

		return msg;
	}

}
